package com.gnl.scheduler;

import com.beeweeb.services.tps.JobExecutor;
import com.beeweeb.services.tps.JobPool;
import com.beeweeb.services.tps.JobPoolExecutor;
import org.apache.log4j.Logger;

public class SchedulerExecutor{
    private static Logger log = Logger.getLogger("GNLGB");
 
    public SchedulerExecutor(String param) {
    	log.info("-> START COSTRUCTOR JOB");

    }
    
    public SchedulerExecutor() {
    	log.info("-> START COSTRUCTOR JOB");

    }

    @JobExecutor
    public void executeJob(){
    	log.info("-> START JOB");
    	log.info("-> END   JOB");
    }



	@JobPoolExecutor
	public void executeJobPool(JobPool j) {
	    try {
	        j.pushJob(SchedulerExecutor.class, null);
	    } catch (Exception e) {
	        log.error("SCHEDULER_FAIL Exception in executeJobPool: ", e);
	    }
	}
  

}

    
  
